package com.gopay.common.domain.bank.bcdl;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by zyt on 2017/9/22.
 * 存储银行返回报文码特征信息，暂时用来查找是否为失败订单
 */
@Entity
@Table(name = "BIS_BANK_RSPCODE_FEATURE")
public class BisBankRspCodeFeature extends BaseEntity {
    private long id;
    private String bankCode;
    private String transCode;
    private String responseCode;
    private String orderCode;
    private String isFail;
    private Date createTs;
    private Date lastUpdateTs;
    private String decription;
    private int version;
    private String reserved1;
    private String reserved2;

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @SequenceGenerator(name = "BisBankRspFeatureSequence", sequenceName = "BIS_BANK_RSPCODE_FEATURE_SEQ")
    @GeneratedValue(generator = "BisBankRspFeatureSequence", strategy = GenerationType.SEQUENCE)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "BANK_CODE", nullable = false)
    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    @Basic
    @Column(name = "TRANS_CODE", nullable = false)
    public String getTransCode() {
        return transCode;
    }

    public void setTransCode(String transCode) {
        this.transCode = transCode;
    }

    @Basic
    @Column(name = "RESPONSE_CODE")
    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    @Column(name = "ORDER_CODE")
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    @Column(name = "IS_FAIL", nullable = false)
    public String getIsFail() {
        return isFail;
    }

    public void setIsFail(String isFail) {
        this.isFail = isFail;
    }

    @Column(name = "CREATE_TS", nullable = false)
    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    @Column(name = "LASTUPDATE_TS", nullable = false)
    public Date getLastUpdateTs() {
        return lastUpdateTs;
    }

    public void setLastUpdateTs(Date lastUpdateTs) {
        this.lastUpdateTs = lastUpdateTs;
    }

    @Column(name = "DECRIPTION")
    public String getDecription() {
        return decription;
    }

    public void setDecription(String decription) {
        this.decription = decription;
    }

    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Column(name = "RESERVED1")
    public String getReserved1() {
        return reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    @Column(name = "RESERVED2")
    public String getReserved2() {
        return reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }
}
